import {
    get,
    formPost,
    post
  } from './http'
  //登录接口
  export const login = param => formPost('/login', param);
  export const logout = param => get('/logout',param);
  export const register = param => post('/user/register',param);
  export const getCaptcha = param => get("/captcha",param);
  export const updatePassword = param => post("/user/updatePassword",param);
  export const forgetPassword = param => get("/forgetPassword",param);
  export const verForgetPassword = param => post("/verForgetPassword",param);
  //查询用户信息
  export const getUserInfo = param => get('/userInfo/getUserInfo',param);
  export const updateUserInfo = param =>post('/userInfo/updateUserInfo',param);
  export const getUserInfoList = param => get("/userInfo/getUserInfoList",param);
  export const lockedUsers = param => post("/user/lockedUsers",param);
  export const unLockedUsers = param => post("/user/unLockedUsers",param);
  export const deleteUsers = param => post("/user/deleteUsers",param);
  export const findBackUsers = param => post("/user/findBackUsers",param);
  export const getExpireUserList = param => get("/user/getExpireUserList",param);
  export const addUserRole = param => post("/user/addRole",param);
  export const delUserRole = param => post("/user/delRole",param);
  //角色
  export const getRoleList = param => get("/role/getRoleList",param);
  export const addRole = param => post("/role/addRole",param);
  export const deleteRole = param => post("/role/deleteRole",param);
  export const updateRole = param => post("/role/updateRole",param);
  export const getUserRoleList = param => get("/user/getRoleByUserId",param)
  //菜单
  export const getMenuByUser = param => get("/menu/getMenuByUser",param);
  export const getMenuList = param => get("/menu/list",param);
  export const updateMenu = param => post("/menu/updateMenu",param);
  export const getAllList = param => get("/menu/getAllList",param);
  export const addMenu = param => post("/menu/addMenu",param);
  export const bindRoleForMenu = param => post("/menu/bindRole",param);
  export const currentRole = param => get("/menu/currentRole",param);
  export const deleteMenu = param => post("/menu/delete",param);
  //日志
  export const getLogList = param => get("/log/list",param);
  export const deleteLog = param => post("/log/del",param);
